
import Executor from "../../../executor";

export default (main:Executor,id:string,ctx:any) => {
    const data = main.getCellData(id) || {};
    const {exp} = data;
    return exp ? Boolean(main.eval(exp,ctx)) : true;
}